package com.example.hzit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户实体类
 * @TableName TbUser
 */
@TableName("TbUser")
@Data
public class User implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;
    private String password; // 密码，加密存储
    private String phone; // 注册手机号
    private String email; // 注册邮箱
    private Date created; // 创建时间
    private Date updated; // 更新时间

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
